package com.cn.zmc.design.chian.disruptor.factory;


import com.cn.zmc.design.chian.disruptor.handle.*;
import com.cn.zmc.design.chian.disruptor.publish.TradePublish;
import com.cn.zmc.design.chian.disruptor.publish.TradeTwoPublish;
import com.cn.zmc.design.chian.domain.Trade;
import com.lmax.disruptor.RingBuffer;
import com.lmax.disruptor.dsl.Disruptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import java.util.UUID;

@Component
public class TradeDisruptorFactory {

    @Autowired
    private TradePublish tradePublish;

    @Autowired
    private TradeTwoPublish tradeTwoPublish;



    public void publishTrade() {
        tradePublish.send();
    }

    public void publishTradeTwo() {
        tradeTwoPublish.send();
    }



}
